home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 15477 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.4 KB

  1. Path: ix.netcom.com!news
  2. From: miker3@ix.netcom.com (Mike Rubenstein)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: PUBLIC / PRIVATE
  5. Date: Fri, 19 Apr 1996 00:53:57 GMT
  6. Organization: Netcom
  7. Message-ID: <3176e39c.95136939@nntp.ix.netcom.com>
  8. References: <4l3k8d$hkp@mulga.cs.mu.OZ.AU>
  9. NNTP-Posting-Host: ix-dc6-10.ix.netcom.com
  10. X-NETCOM-Date: Thu Apr 18  7:53:52 PM CDT 1996
  11. X-Newsreader: Forte Agent .99d/32.182
  12.  
  13. simc@mundil.cs.mu.OZ.AU (Falchion) wrote:
  14.  
  15. > I'm analysing some C source code and I've
  16. > come across PUBLIC and PRIVATE keywords
  17. > eg PUBLIC char * app_name = "Lynx";
  18. >    PRIVATE void HTFWriter_write ARGS3(HTSteam, *, me, CONST char*,
  19. >                     s, int, l) { fwrite(s, 1, l, me->fp) }
  20. > I though C didn't have PUBLIC or PRIVATE ?
  21. > It definitely doesn't look like C++ source code - it looks like
  22. > C code with PUBLIC and PRIVATE keywords scattered everywhere.
  23. > 2nd question:
  24. >    PRIVATE void HTFWriter_write ARGS3(HTSteam, *, me, CONST char*,
  25. >                     s, int, l) { fwrite(s, 1, l, me->fp) }
  26. >    What is the ARGS3 ?
  27. >    I'm accustomed to 
  28. >     return_type function_name(args) { ... }
  29.  
  30. You were correct -- C does not have the keywords PUBLIC or PRIVATE.
  31. Nor does it define ARGS3.  Look at the header files to see how this
  32. code #defines them.  PRIVATE is probably #defined as static and PUBLIC
  33. as either extern or empty.  I've no idea what ARGS3 is.
  34.  
  35.  
  36. Michael M Rubenstein
  37.